from ..Util.NetUtil import sendAppMsg


def toast(info="这是消息"):
    data = {
        'msg': info,
    }
    return sendAppMsg(1, data)


def alert(info="这是消息"):
    data = {
        'msg': info,
    }
    return sendAppMsg(2, data)


def dialog(title="dialog", info="这是消息"):
    data = {
        'title': title,
        'msg': info,
    }
    return sendAppMsg(3, data)


def confirm(title='你的选择', question='?'):
    data = {
        'title': title,
        'msg': question,
    }
    return sendAppMsg(4, data, 1)


def select(title='你的选择', items=[]):
    return 0


def inputText():
    return ""


def openAC():
    sendAppMsg(19, '')
